package com.outdoor.server.mapper;

import com.outdoor.pojo.entity.Track;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TrackMapper {
    void insert(Track track);
    
    void updateById(Track track);
    
    Track selectById(Long id);

    @Select("SELECT * FROM track WHERE uid = #{uid} ORDER BY end_time DESC")
    List<Track> selectAllTrackByUid(Long uid);
} 